﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContentPlaceholder" runat="server">
    <h2>Test 1 - Handshake</h2>

    <p>Il Registrar deve stabilire una connessione https con il server EPP presente sulla macchina epp-acc1.nic.it, utilizzando il comando di hello.</p>
    <p>Verificare che il messaggio di greeting di risposta contenga:</p>
    <pre class="brush: xml">
        <greeting>
            <svID>ITNIC EPP Registry</svID>
            <svDate>2010-10-22T13:04:21+02:00</svDate>
            <svcMenu>
                <lang>en</lang>
                <lang>it</lang>
                <version>1.0</version>
                <objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
                <objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
                <svcExtension>
                    <extURI>http://www.nic.it/ITNIC-EPP/extepp-1.0</extURI>
                    <extURI>http://www.nic.it/ITNIC-EPP/extcon-1.0</extURI>
                    <extURI>http://www.nic.it/ITNIC-EPP/extdom-1.0</extURI>
                    <extURI>urn:ietf:params:xml:ns:rgp-1.0</extURI>
                </svcExtension>
            </svcMenu>
            <dcp>
                <access>
                    <all />
                </access>
                <statement>
                    <purpose>
                        <admin />
                        <prov />
                    </purpose>
                    <recipient>
                        <ours />
                        <public />
                    </recipient>
                    <retention>
                        <stated />
                    </retention>
                </statement>
            </dcp>
        </greeting>
    </pre>
    <p>A questo punto il Registrar può autenticarsi con il server EPP e iniziare la sessione di lavoro.</p>
    <hr />

    <% using (Html.BeginForm()) {%>
        
        <% if ((bool)ViewData["__PRE"]) { %>
            <div class="operationPanel">
                <input type="submit" value="Procedi" />
            </div>
        <% } %>

        <% if ((bool)ViewData["__POST"]) { %>
            <% Html.RenderPartial("HelloConsoleView", (EPPLib.Messages.HelloResponseMessage)ViewData["__RESPONSE_MESSAGE"]); %>
            <div class="operationPanel">
                <a href="Step2">Continua</a>
            </div>
        <% } %>
    <% } %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="titleContentPlaceholder" runat="server">
</asp:Content>